package com.demo.coretech.asserts;

/**
 * @Authors：gaoyang
 * @CreateTime：2021/11/29 17:29
 * @Description：todo
 */
public class AssertTest {
    public static void main(String[] args) {
        cal(-3);
    }

    public static double cal(double x){
        assert x>=0:x;
        return Math.sqrt(x);
    }
}
